package pharao.client.views.game.landkarte.ort.basics;

import java.util.ArrayList;
import java.util.List;

import pharao.client.dto.AufgabenStatusDTO;
import pharao.client.dto.OrtDTO;
import pharao.client.views.game.landkarte.ort.lesson.Lesson;

public class BronceLessonGenerator {
	
	public static List getListAdditionLessons(int count, OrtDTO ortDTO) {
		
		List listLessons = new ArrayList();
		
		for(int i=0; i < count; i++) {
		
			long a = Math.round(((i + 2) * Math.random() + (4 * (i +7) - (3 * i)))); 
			long b = Math.round(((i + 1) * Math.random() + (3 * (i + 4) - (7 * i))));
			
			String lessonText = "" + a + " + " + b + " = ";
			String result = "" + (a + b);
			
			Lesson lesson = new Lesson(lessonText, result, AufgabenStatusDTO.TYP_ADDITION, AufgabenStatusDTO.DIFFICULTY_BRONCE, ortDTO);
			
			listLessons.add(lesson);
		}		
		
		return listLessons;
	}

}
